package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.http.observer.StateLiveData
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.BannerModel

/**
 * @auth: njb
 * @date: 2021/12/17 17:46
 * @desc: 描述
 */
class BannerRepository :BaseRepository(){
    private val mBannerService by lazy {
        RetrofitClient.service
    }


    suspend fun banner():ApiResponse<List<BannerModel>>{
        return executeHttp {
            mBannerService.banner()
        }

    }
}